import request from '@/utils/request';

export async function reqTyMenuList(data: any, options?: any): Promise<any> {
	return request('/api/v1/menu/list', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqAddTyMenu(data: any, options?: any): Promise<any> {
	return request('/api/v1/menu/create', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqUpdateTyMenu(data: any, options?: any): Promise<any> {
	return request('/api/v1/menu/update', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqDeleteTyMenu(data: any, options?: any): Promise<any> {
	return request('/api/v1/menu/delete', {
		method: 'POST',
		data,
		...(options || {}),
	});
}


